package cn.zhentao.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class Order implements Serializable {
    //订单表主键
    private  Integer id;
    //手机类型外键
    private  Integer orderType;
    //手机颜色外键
    private  Integer orderColor;
    //手机版本外键
    private  Integer orderVersion;
    //购买数量
    private  Integer num;
    //用户表外键
    private  Integer userId;
    //价格表外键
    private  Integer orderPrice;
    //图片表外键
    private  Integer imgId;
    //订单状态 0:未收货 1:收货 2:退货/拒收
    private  Integer orederState;
    //地址表外键
    private Integer orderAddress;
    //收货时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receivingTime;
}
